<?
$TITRE="Schéma Scrum";
require("haut.php");

require("../CONFIG/config.php");
addCSS("schema/schema.css");
addJS("schema/schema.js");

print "<div id='contenu' class='cont'>";
    
    $gestionRole=new GestionRole($conBDD);
    
    $WHERE=array();
    $WHERE[]="scrum_role.schema = '1'";
    $resC=$gestionRole->getListeRole($WHERE);
    $roles=array();
    foreach($resC as $role){
        $roles[$role->getIntitule()]= nl2br(utf8_encode($role->getRole()));
    }
    
    $client=$roles["client"];
    $chef_de_produit=$roles["chef_de_produit"];
    $expert=$roles["expert"];
    $scrum_master=$roles["scrum_master"];
    $dev=$roles["equipe_de_dev"];
    
    print "<div id='theSchema'>";
    
       print "<div>
            <div class='cercle_' id='cercle_client'>
                <img src='/SITE_SCRUM/IMAGE/schema/02.png' class='img2'/>
            </div>
            <div class='cercle_' id='recettage_livraison'>
                <img src='/SITE_SCRUM/IMAGE/schema/03.png' class='img3'/>
            </div>
            <div class='cercle_' id='besoin_exigences'>
                <img src='/SITE_SCRUM/IMAGE/schema/25.png' class='img25'/>
            </div>
            <div  class='cercle_' id='cercle_chef_de_produit'>
                <img src='/SITE_SCRUM/IMAGE/schema/04.png' class='img4'/>
            </div>
            <div class='cercle_' id='proposition_decoupage'>
                <img src='/SITE_SCRUM/IMAGE/schema/06.png' class='img6'/>
            </div>
            <div class='cercle_' id='phase_charte'>
                <img src='/SITE_SCRUM/IMAGE/schema/07.png' class='img7'/>
            </div>
            <div class='cercle_' id='problemes_metiers'>
                <img src='/SITE_SCRUM/IMAGE/schema/09.png' class='img9'/>
            </div>
            <div class='cercle_' id='phase_produit'>
                <img src='/SITE_SCRUM/IMAGE/schema/10.png' class='img10'/>
            </div>
            <img src='/SITE_SCRUM/IMAGE/schema/11.png' class='img11'/>
            <div class='cercle_' id='validation'>
                <img src='/SITE_SCRUM/IMAGE/schema/12.png' class='img12'/>
            </div>
            <div class='cercle_' id='cercle_expert'>
                <img src='/SITE_SCRUM/IMAGE/schema/14.png' class='img14'/>
            </div>
            <img src='/SITE_SCRUM/IMAGE/schema/15.png' class='img15'/>
            <div class='cercle_' id='problemes_techniques'>
                <img src='/SITE_SCRUM/IMAGE/schema/16.png' class='img16'/>
            </div>
            <div class='cercle_' id='cercle_scrum_master'>
                <img src='/SITE_SCRUM/IMAGE/schema/17.png' class='img17'/>
            </div>
            <div class='cercle_' id='sprint'>
                <img src='/SITE_SCRUM/IMAGE/schema/20.png' class='img20'/>
            </div>
            <div class='cercle_' id='animation'>
                <img src='/SITE_SCRUM/IMAGE/schema/23.png' class='img23'/>
            </div>
            <div class='cercle_' id='avancement_problemes'>
                <img src='/SITE_SCRUM/IMAGE/schema/24.png' class='img24'/>
            </div>
            <div class='cercle_' id='cercle_equipe_de_dev'>
                <img src='/SITE_SCRUM/IMAGE/schema/19.png' class='img19'/>
            </div>
       </div>";
       
       $WHERE=array();
       $WHERE[]="scrum_role.schema = '2'";
       $resC=$gestionRole->getListeRole($WHERE);
       $roles=array();
       foreach($resC as $role){
           $roles[$role->getIntitule()]= nl2br(utf8_encode($role->getRole()));
       }
       
       $recettage_livraison=$roles["recettage_livraison"];
       print "<div class='justified' id='info_recettage_livraison' title='Recettage + livraison'>".$recettage_livraison."</div>";
       
       $besoin_exigences=$roles["besoin_exigences"];
       print "<div class='justified' id='info_besoin_exigences' title='Besoin exigences'>".$besoin_exigences."</div>";
       
       $phase_charte=$roles["phase_charte"];
       print "<div class='justified' id='info_phase_charte' title='Phase fonction + charte'>".$phase_charte."</div>";
       
       $proposition_decoupage=$roles["proposition_decoupage"];
       print "<div class='justified' id='info_proposition_decoupage' title='Proposition découpage'>".$proposition_decoupage."</div>";
       
       $problemes_metiers=$roles["problemes_metiers"];
       print "<div class='justified' id='info_problemes_metiers' title='Problèmes métiers'>".$problemes_metiers."</div>";
       
       $phase_produit=$roles["phase_produit"];
       print "<div class='justified' id='info_phase_produit' title='Phase produit'>".$phase_produit."</div>";
       
       $validation=$roles["validation"];
       print "<div class='justified' id='info_validation' title='Validation'>".$validation."</div>";
       
       $problemes_techniques=$roles["problemes_techniques"];
       print "<div id='info_problemes_techniques' title='Problèmes techniques'>".$problemes_techniques."</div>";
       
       $sprint=$roles["sprint"];
       print "<div class='justified' id='info_sprint' title='Sprint'>".$sprint."</div>";
       
       $animation=$roles["animation"];
       print "<div class='justified' id='info_animation' title='Animation'>".$animation."</div>";
       
       $avancement_problemes=$roles["avancement_problemes"];
       print "<div class='justified' id='info_avancement_problemes' title='Avancement + problèmes'>".$avancement_problemes."</div>";
       
       print "<div class='justified' id='info_cercle_client' title='Le client'>".$client."</div>";
       print "<div class='justified' id='info_cercle_chef_de_produit' title='Le chef de produit'>".$chef_de_produit."</div>";
       print "<div class='justified' id='info_cercle_expert' title='Expert'>".$expert."</div>";
       print "<div class='justified' id='info_cercle_scrum_master' title='Scrum Master'>".$scrum_master."</div>";
       print "<div class='justified' id='info_cercle_equipe_de_dev' title='Equipe de développement'>".$dev."</div>";

    print "</div>";
    
print "</div>";
    
print "</body>";
print "</html>";
?>
